-- card: 4519 from stack: in.1 -- bmap block id: 0 -- flags: 0000 -- background id: 2619 -- name: -- part 2 (button) -- low flags: 00 -- high flags: 0000 -- rect: left=43 top=27 right=63 bottom=77 -- title width / last selected line: 0 -- icon id / first selected line: 32462 / 32462 -- text alignment: 1 -- font id: 0 -- text size: 12 -- style flags: 0 -- line height: 16 -- part name: New Button ----- HyperTalk script ----- on mouseUp play "Boing" tempo 120 a push card visual zoom open go to card id 80559 of stack "Help" end mouseUp -- part contents for background part 10 ----- text ----- The "go" command will take you to another card in the current stack, or a card in another stack. You can specify the card by it's name, it's number, or it's position in the stack. The word "to" is optional. After trying the Test Button, change the "go to" command to go to the first card in this stack. Notice in this example that after you go to another card, you are returned back to this one. This is done with two commands: "pop card" and "push card". "Push card" works like a bookmark. When ever you use it, it remembers what card and stack you are in. Then you can go to another card (or another stack). When you want to return, use "pop card" and it will return you to the last card that "push card" was used. Push and pop are useful in HyperCard applications which allow you to get to a card several ways. Once you are in the card, you can get back to wherever you were by popping. (The "set lockMessages to true/false" commands in the Script Window are needed for this tutorial. You do not need them when writing your own scripts.) Click ? to find out more about "Go". -- part contents for background part 6 ----- text ----- Go To -- part contents for background part 9 ----- text ----- on mouseUp set lockMessages to true push card go to prev card pop card set lockMessages to false end mouseUp -- part contents for background part 13 ----- text ----- on mouseUp set lockMessages to true push card go to prev card pop card set lockMessages to false end mouseUp